package com.lsc.www.day04;

public class MethodTest {
    public static void main(String[] args) {
        //调用方法
        method1();
        int num =add(1,4);

        String str = test("Hello", 10,1);
        System.out.println(str);
        System.out.println(num);
    }

    //定义方法
    public static void method1(){
        System.out.println("Hello");
    }

    public static int add(int a , int b){
//        System.out.println(a+b);
        return a+b;
    }

    public static String test(String str1 , int a , double d){
        return str1 + a;
    }

}
